<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<br>
<br>
<center>
<table style="border-width: 0.5mm;" bgcolor="#F8F8F8">

	<thead >
	<tr bgcolor="#E6E6E6">
	<td><font size="2">번호</font></td>
	<td><font size="2">제목</font></td>
	<td><font size="2">학년</font></td>
	<td><font size="2">과목</font></td>
	<td><font size="2">작성자</font></td>
	<td><font size="2">작성일</font></td>
	<td><font size="2">조회수</font></td>
	</tr>
	</thead>
	<tbody>
	<c:forEach items="${requestScope.list.list }" var="list">
	<tr>
	<td><font size="2">${list.lessonno }</font></td>
	<td><a href="showLessonBoardInfo.do?lessonno=${list.lessonno }&studentid=${list.studentid}"><font size="2">${list.title }</font></a></td>
	<td><font size="2"></font>${list.grade }</td>
	<td><font size="2"></font>${list.hopesubject }</td>
	<td><font size="2">${list.name }</font></td><td><font size="2">${list.datePosted }</font></td>
	<td><font size="2">${list.hits }</font></td>
	</tr>
	</c:forEach>
	</tbody> 
</table>
<br>

<c:if test="${requestScope.list.pagingBean.previousPageGroup }">
<a href="lessonBoardSerch.do?pageNo=${requestScope.list.pagingBean.startPageOfPageGroup-1}">◀</a>
</c:if>
&nbsp;&nbsp;
<c:forEach var="i" 
begin="${requestScope.list.pagingBean.startPageOfPageGroup}"
end="${requestScope.list.pagingBean.endPageOfPageGroup}">
	<c:choose>
		<c:when test="${requestScope.list.pagingBean.nowPage!=i}">
		<a href="lessonBoardSerch.do?pageNo=${i}">${i}</a>
		</c:when>
		<c:otherwise>
		${i}
		</c:otherwise>
	</c:choose>
</c:forEach>
&nbsp;&nbsp;
<c:if test="${requestScope.list.pagingBean.nextPageGroup}">
<a href="lessonBoardSerch.do?pageNo=${requestScope.list.pagingBean.endPageOfPageGroup+1}">▶</a>
</c:if>
<br>
<br>
<c:if test="${sessionScope.mvo.membertype=='s'}">
<a href="writeLessonPage.do"><input type="button" value="글쓰기"></a>
</c:if>
</center>
</body>
</html>